home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / ProgramF / CRYSTAL / CRW9 / DEV / INCLUDE / Uffuncs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-23  |  2.0 KB  |  66 lines

  1. /*
  2. ** File:    UFFuncs.h
  3. ** Author:  Rex Benning
  4. ** Date:
  5. **
  6. ** Purpose: Declaration of the entry points a user-defined function DLL
  7. **          must provide.
  8. */
  9.  
  10.  
  11. #if !defined (UFFUNCS_H)
  12. #define UFFUNCS_H
  13.  
  14. #if !defined (UFDLL_H)
  15.   #include "ufdll.h"
  16. #endif
  17.  
  18. #if defined (__cplusplus)
  19. extern "C"
  20. {
  21. #endif
  22.  
  23. // 'UF5Initialize' is the initialization function for new UFLs.  It lets the
  24. // UFL know which version of CRW or CRPE it is working with.  'UFInitialize'
  25. // will be used if the UFL is missing the newer function.
  26. UFError CR_EXPORT UFInitialize (void);
  27. UFError CR_EXPORT UF5Initialize (CRVersion crVersion);
  28.  
  29. UFError CR_EXPORT UFTerminate (void);
  30.  
  31. UFFunctionDefStringList FAR *CR_EXPORT UFGetFunctionPrototypes (void);
  32.  
  33. UFFunctionTemplateList FAR *CR_EXPORT UFGetFunctionTemplates (void);
  34.  
  35. UFFunctionExampleList FAR *CR_EXPORT UFGetFunctionExamples (void);
  36.  
  37. UFError CR_EXPORT UFCallFunction (UFTInt16s i,
  38.                                   UFParamBlock FAR *paramPtr);
  39.  
  40. char FAR *CR_EXPORT UFErrorRecovery (UFParamBlock FAR *paramPtr,
  41.                                      UFError errN);
  42.  
  43. UFTInt16u CR_EXPORT UFGetVersion (void);
  44.  
  45. // 'UF5GetFunctionDefStrings' is the preferred function for new UFLs.  It
  46. // tells CRW or CRPE more about the functions defined by the UFL.
  47. // 'UFGetFunctionDefStrings' will be used if the UFL is missing the newer
  48. // function.
  49. UFFunctionDefStringList FAR *CR_EXPORT UFGetFunctionDefStrings (void);
  50. UF5FunctionDefStringList FAR *CR_EXPORT UF5GetFunctionDefStrings (void);
  51.  
  52. void CR_EXPORT UFStartJob (UFTInt32u jobId);
  53. void CR_EXPORT UFEndJob (UFTInt32u jobId);     
  54.  
  55. UFError CR_EXPORT UF5SaveState (UFTInt32u jobId,
  56.                                 void FAR * FAR *savedState,
  57.                                 UFTInt32u FAR *stateSize);
  58. UFError CR_EXPORT UF5RestoreState (UFTInt32u jobId,
  59.                                    void FAR *savedState);
  60.  
  61. #if defined (__cplusplus)
  62. }
  63. #endif
  64.  
  65. #endif // !defined (UFFUNCS_H)
  66.